/*
  学习目标：创建泛型函数的第二种写法-同时指定
*/

// 语法:
type MyType = <T>(a: T) => T;
const test: MyType = (a) => {
  return a
};

let res1 = test<string>('aa');
let res2 = test('bb');
let res3 = test(44)
let res4 = test(true);
let res5 = test([66, 22]);
let res6 = test(['y', 'i']);